home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.5)
-
- from glob import glob
- from util import backtick
-
- def main():
- print HEADER
- for f in glob('pg_*.py'):
- module_name = f[3:-3]
- print '%s = [' % module_name
- for line in backtick('xgettext -D. -LPython --no-wrap --no-location -o- ' + f).split('\n'):
- if line.startswith('msgid '):
- line = line.strip()
- s = line[7:-1]
- if s:
- print ' _("' + s.replace('&', '') + '"),'
-
- s
-
- print ']'
- print
-
-
- HEADER = '#\n# DO NOT EDIT\n#\n# this file is generated by running gensearchable.py in this directory\n#\n'
- if __name__ == '__main__':
- main()
-
-